﻿using System;
using System.Diagnostics;
using System.Workflow.Activities;
using System.Workflow.ComponentModel;
using System.Workflow.Runtime;

namespace DP.Sharepoint.Workflow.Tests.ForTesting
{
    public delegate void AddActivitiesHandler(object sender, EventArgs e);

    public class WorkflowSkeleton : SequentialWorkflowActivity
    {
        public event AddActivitiesHandler AddTestActivities;

        public Guid workflowId = default(Guid);
        
        public WorkflowSkeleton()
        {
            InitializeComponent();
        }

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [DebuggerNonUserCode]
        protected void InitializeComponent()
        {
            CorrelationToken correlationtoken1 = new CorrelationToken();
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "WorkflowSkeleton";

            CanModifyActivities = true;

            Name = "WorkflowSkeleton";

            CanModifyActivities = false;
        }

        protected virtual Activity GetActivityToTest(CorrelationToken token)
        {
            return null;
        }
    }
}